package core.attribute.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="flatattributes")
public class FlatAttributes implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 143433L;
	private Long uuid; 
	private AttributeSet attributeSet;
	private Attribute attribute;
	
	@Id
	@GeneratedValue
	@Column(name="uuid")
	public Long getUuid() {
		return uuid;
	}
	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}
	
	@ManyToOne(cascade = CascadeType.ALL)
	public AttributeSet getAttributeSet() {
		return attributeSet;
	}
	public void setAttributeSet(AttributeSet attributeSet) {
		this.attributeSet = attributeSet;
	}
	@ManyToOne(cascade = CascadeType.ALL)
	public Attribute getAttribute() {
		return attribute;
	}
	public void setAttribute(Attribute attribute) {
		this.attribute = attribute;
	}
}
